Computing Hamming Distance For Error Detection & Correction